[Extension()] public static IEnumerable<T> Union<T>( HashSet<T> hashset, IEnumerable<T> seq )
Parameters
- hashset
- An hashset of elements whose distinct elements form the first set for the union.
- seq
- A sequence of elements whose distinct elements form the second set for the union.
Type Parameters
- T
- The code element type of the elements of the hashset and the sequence.
Return Value
A sequence that contains the elements that form the set union of the hashset and the sequence, excluding duplicates.